<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p4_元素溢出</title>
    <style>
        .box {
            border: 5px solid #00f;
            width: 300px;
            height: 5000px;
            overflow: visible; /* 溢出可见 默认值 */
            overflow: hidden; /* 溢出隐藏 超出去的部分直接裁掉 */
            overflow: scroll; /* 无论是否溢出 两个方向都显示拖拽条 */
            overflow: auto; /*  溢出的方向才显示拖拽条  */
        }
        img {
            width: 200px;
            vertical-align: baseline;
            vertical-align: bottom;
            vertical-align: middle;
            vertical-align: top;
        }
    </style>
</head>
<body>
    abyj<img src="1.png">国圈 <img src="1.png">
<div class="box">
    <img src="1.png" alt="">
    <img src="1.png" alt="">
    <img src="1.png" alt="">
    <img src="1.png" alt="">
    <img src="1.png" alt="">
</div>
</body>
</html>